package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName biz_partsrepbill
 */
@TableName(value ="biz_partsrepbill")
@Data
@ToString
public class BizPartsrepbill implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer billid;

    /**
     * 
     */
    private String billflag;

    /**
     * 
     */
    private String billtype;

    /**
     * 
     */
    private Integer partsid;

    /**
     * 
     */
    private Integer billcount;

    /**
     *
     */
    private Date billtime;

    /**
     *
     */
    private Integer billuser;

    @TableField(exist = false)
    private SysCode sysCode;

    @TableField(exist = false)
    private SysUser sysUser;

    @TableField(exist = false)
    private BizParts bizParts;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BizPartsrepbill other = (BizPartsrepbill) that;
        return (this.getBillid() == null ? other.getBillid() == null : this.getBillid().equals(other.getBillid()))
            && (this.getBillflag() == null ? other.getBillflag() == null : this.getBillflag().equals(other.getBillflag()))
            && (this.getBilltype() == null ? other.getBilltype() == null : this.getBilltype().equals(other.getBilltype()))
            && (this.getPartsid() == null ? other.getPartsid() == null : this.getPartsid().equals(other.getPartsid()))
            && (this.getBillcount() == null ? other.getBillcount() == null : this.getBillcount().equals(other.getBillcount()))
            && (this.getBilltime() == null ? other.getBilltime() == null : this.getBilltime().equals(other.getBilltime()))
            && (this.getBilluser() == null ? other.getBilluser() == null : this.getBilluser().equals(other.getBilluser()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBillid() == null) ? 0 : getBillid().hashCode());
        result = prime * result + ((getBillflag() == null) ? 0 : getBillflag().hashCode());
        result = prime * result + ((getBilltype() == null) ? 0 : getBilltype().hashCode());
        result = prime * result + ((getPartsid() == null) ? 0 : getPartsid().hashCode());
        result = prime * result + ((getBillcount() == null) ? 0 : getBillcount().hashCode());
        result = prime * result + ((getBilltime() == null) ? 0 : getBilltime().hashCode());
        result = prime * result + ((getBilluser() == null) ? 0 : getBilluser().hashCode());
        return result;
    }

}